package com.ambow.Entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table
public class StockCheck extends ID implements Serializable{
	private String name;
	private int account;
	private String remark;
	private Date checkDate;
	@ManyToOne(targetEntity=TextBook.class)
	@JoinColumn(name="textBook_id",referencedColumnName="id")
	private TextBook textBook;
	@ManyToOne(targetEntity=Cell.class)
	@JoinColumn(name="cell_id",referencedColumnName="id")
	private Cell cell;
	@ManyToOne(targetEntity=Operator.class)
	@JoinColumn(name="operator_id",referencedColumnName="id")
	private Operator operator;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAccount() {
		return account;
	}
	public void setAccount(int account) {
		this.account = account;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCheckDate() {
		return checkDate;
	}
	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}
	public TextBook getTextBook() {
		return textBook;
	}
	public void setTextBook(TextBook textBook) {
		this.textBook = textBook;
	}
	public Cell getCell() {
		return cell;
	}
	public void setCell(Cell cell) {
		this.cell = cell;
	}
	public Operator getOperator() {
		return operator;
	}
	public void setOperator(Operator operator) {
		this.operator = operator;
	}
	
	
	

}
